<template>
	<view class="contain">
		<uni-list>
			<uni-list-item title="充值时间"  :rightText="paymentinfo.orderTime"></uni-list-item>
			<uni-list-item title="充值金额" :rightText="paymentinfo.rechargeAmount" ></uni-list-item>
			<uni-list-item title="订单号" :rightText="paymentinfo.orderNumber"></uni-list-item>
			
		</uni-list>
		<navigator url="/pages/card/card"><button>查看我的一卡通</button></navigator>
	</view>
</template>

<script>
	
	export default {
		data() {
			return {
				num:'',
				paymentinfo:''
			}
		},
		onLoad(e) {
			this.num=e.num
			console.log(this.num)
			this.getpayment()
		},
		methods: {
			async getpayment(){
				const res = await this.$request.getrechargelist(this.num)
				this.paymentinfo=res.data.rows[0]
				console.log(res)
			},
		}
	}
</script>

<style>

</style>
